import request from "@/utils/request";

// 修改用电价格管理 错误码 20010
export function editPricemanage(data) {
  return request({
    url: "/energy/price-manage/edit",
    method: "post",
    data,
  });
}

// 新增用电价格管理 错误码 20011
export function addPricemanage(data) {
  return request({
    url: "/energy/price-manage/edit",
    method: "post",
    data,
  });
}

// // 获取用电价格管理详细信息 错误码 20012
// export function getPricemanage(version) {
//   return request({
//     url: "/energy/price-manage/" + version,
//     method: "get",
//   });
// }

// 能耗电价审核 错误码 20013
export function auditPricemanage(data) {
  return request({
    url: "/energy/price-manage/audit",
    method: "post",
    data,
  });
}

// 查询用电价格管理版本号列表 错误码 20014
export function listPricemanageversion(query) {
  return request({
    url: "/energy/price-manage/version/list",
    method: "get",
    params: query,
  });
}

// 获取能源价格管理信息列表 错误码 20015
export function listPricemanage(data) {
  return request({
    url: "/energy/price-manage/list",
    method: "post",
    data,
  });
}

// 删除用电价格管理 错误码20016
export function delectPricemanage(data) {
  return request({
    url: "/energy/price-manage/delete",
    method: "post",
    data,
  });
}
